package org.doctestj;

public class Run {
    /**
     * Run the JavaScript test suite generated from the source for one or more 
     * packages, log successes to STDOUT and errors to STDERR, as regular JSON 
     * pairs made of the test source SHA1 hexdigest and a text message, exit
     * the number of failed tests (ie: zero if all are OK).
     * 
     * @param arguments a list of package names
     *  
     * @pre java org.doctestj.Run \
     *   -cp lib/doctestj.jar;lib/smalljs.jar;lib/xp.jar \
     *   doc/tests 1> tests.out 2> tests.err
     * 
     * @p Test results are simple text messages prefixed by a hash of the
     * sources running, uniquely identifying the same tests accross versions
     * allowing to distinguish between old and new tests when comparing
     * two test logs.
     */
    public static void main (String[] arguments) {
        
        // TODO: ...
        
        // boolean pass = ((Boolean) Context.jsToJava(scriptCall(
        //    $, cx, scope, run
        //    ), Boolean.class)).booleanValue();
    } 
}
